package com.example.administrator.myretrofitdemo.http;

import com.example.administrator.myretrofitdemo.Entry.HttpResult;
import com.example.administrator.myretrofitdemo.Entry.Index;
import com.example.administrator.myretrofitdemo.Entry.LoginBean;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by liukun on 16/3/9.
 */
public interface MovieService {

//    @GET("top250")
//    Call<MovieEntity> loginIn(@Query("start") int start, @Query("count") int count);

//    @GET("top250")
//    Observable<MovieEntity> loginIn(@Query("start") int start, @Query("count") int count);

//    @GET("top250")
//    Observable<HttpResult<List<Subject>>> loginIn(@Query("start") int start, @Query("count") int count);

    @POST("Login/login")
    Observable<HttpResult<LoginBean>> loginIn(@Body RequestBody body);

    @POST("article/index")
    Observable<HttpResult<List<Index>>> index();

}
